package com.itheima.abstr;
//测试类
public class Test {
    //程序的主入口
    public static void main(String[] args) {
        //空参创建对象
        Cat c = new Cat();
        c.eat();
        c.drink();

        //创建Dog的对象
        Dog d  = new Dog();
        d.eat();
        d.drink();
    }
}
